export type Props = {
  name: string;
  price: number;
  quantity: number;
};
export default function CardItem({ name, price, quantity }: Props) {
  return (
    <div className="item">
      <h1 className="name">{name}</h1>
      <h1 className="name">
        {price}₽ <span className="colored">x</span> {quantity} (
        {quantity * price}₽)
      </h1>
    </div>
  );
}
